#include <stdio.h>
#include <stdlib.h>

float sum(float, float);
float sub(float, float);
float mul(float, float);
float dvd(float, float);

float op(float, float, float (*)(float, float));

int main(void)
{
    float a, b;

    float (*pf)(float, float);

    scanf("%f%f", &a, &b);

    printf("---------------\n");

    printf("%g + %g = %g\n", a, b, op(a, b, sum));
    pf = sub;
    printf("%g - %g = %g\n", a, b, op(a, b, sub));
    pf = mul;
    printf("%g * %g = %g\n", a, b, op(a, b, mul));
    pf = dvd;
    printf("%g / %g = %g\n", a, b, op(a, b, dvd));

    return 0;
}

float sum(float a, float b)
{
    return a + b;
}

float sub(float a, float b)
{
    return a - b;
}

float mul(float a, float b)
{
    return a * b;
}

float dvd(float a, float b)
{
    return a / b;
}

float op(float a, float b, float (*fun)(float, float))
{
    fun(a, b);
}

    
